<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
%>
<div class="mt20"></div>
<c:forEach items="${requestScope.tasks}" var="task">
    <li> <span class="blogpic"><a href="#"><img src="<%=path %>/web/userinfo/img/taskImages/${task.pic}"></a></span>
        <h3 class="blogtitle"><a href="<%=path%>/web/task/details?id=${task.id}">${task.title}</a></h3>
        <div class="bloginfo">
            <p>${fn:substring(task.info,0 , 100)}..........</p>
        </div>
        <div class="autor"><span style="margin-left: -20px;" class="lm"><img src="<%=path%>/web/static/img/newsbg05.jpg"/>&nbsp;&nbsp;用户:${task.userinfo.username}</span><span class="lm"><a href="/" target="_blank" class="classname">状态</a></span><span class="dtime"><img src="<%=path%>/web/static/img/newsbg01.jpg"/>&nbsp;&nbsp;<fmt:formatDate value="${task.inputTime}" pattern="yyyy-MM-dd"/> </span><span class="viewnum"><img src="<%=path%>/web/static/img/newsbg.jpg">&nbsp;&nbsp;浏览数（${task.browse}）</span><span class="viewnum"><img style="width:2%" src="<%=path%>/web/static/img/comment.jpg"/>&nbsp;&nbsp;评论（<a href="/">0</a>）</span><span class="readmore"><a href="<%=path%>/web/task/details?id=${task.id}">阅读原文>></a></span></div>
    </li>
</c:forEach>


<div class="meneame solr" style="height:60px;">
    <c:forEach begin="1" end="${(requestScope.pager.dataCount)/(requestScope.pager.pageSize)+1}" var="i">
        <c:if test="${requestScope.pager.pageNum eq i}" var="isCur">
            <a class="current" data-id="${i}">${i}</a>
        </c:if>
        <c:if test="${not isCur}">
            <a href="#" data-id="${i}">${i}</a>
        </c:if>
    </c:forEach>
    <%--             <a href="#?page=2"> > </a>--%>
</div>

